﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Himp.Outpatient.Migrations
{
    /// <inheritdoc />
    public partial class modify_table_OtpAppyFormDto_appyDrId : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "BilgDrName",
                schema: "Outpatient",
                table: "OtpAppyForm",
                newName: "ExecDeptId");

            migrationBuilder.RenameColumn(
                name: "BilgDrCodg",
                schema: "Outpatient",
                table: "OtpAppyForm",
                newName: "AppyDrName");

            migrationBuilder.AddColumn<Guid>(
                name: "AppyDeptId",
                schema: "Outpatient",
                table: "OtpAppyForm",
                type: "uuid",
                nullable: false,
                defaultValue: new Guid("00000000-0000-0000-0000-000000000000"));

            migrationBuilder.AddColumn<string>(
                name: "AppyDrCodg",
                schema: "Outpatient",
                table: "OtpAppyForm",
                type: "text",
                nullable: false,
                defaultValue: "");

            migrationBuilder.AddColumn<Guid>(
                name: "AppyDrId",
                schema: "Outpatient",
                table: "OtpAppyForm",
                type: "uuid",
                nullable: false,
                defaultValue: new Guid("00000000-0000-0000-0000-000000000000"));

            migrationBuilder.AddColumn<string>(
                name: "Diag",
                schema: "Outpatient",
                table: "OtpAppyForm",
                type: "text",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "Pup",
                schema: "Outpatient",
                table: "OtpAppyForm",
                type: "text",
                nullable: true);
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "AppyDeptId",
                schema: "Outpatient",
                table: "OtpAppyForm");

            migrationBuilder.DropColumn(
                name: "AppyDrCodg",
                schema: "Outpatient",
                table: "OtpAppyForm");

            migrationBuilder.DropColumn(
                name: "AppyDrId",
                schema: "Outpatient",
                table: "OtpAppyForm");

            migrationBuilder.DropColumn(
                name: "Diag",
                schema: "Outpatient",
                table: "OtpAppyForm");

            migrationBuilder.DropColumn(
                name: "Pup",
                schema: "Outpatient",
                table: "OtpAppyForm");

            migrationBuilder.RenameColumn(
                name: "ExecDeptId",
                schema: "Outpatient",
                table: "OtpAppyForm",
                newName: "BilgDrName");

            migrationBuilder.RenameColumn(
                name: "AppyDrName",
                schema: "Outpatient",
                table: "OtpAppyForm",
                newName: "BilgDrCodg");
        }
    }
}
